<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        // 立即执行函数往往只会被调用一次
        // 函数定义完，立马被调用
        (function (){
            alert("我是立即执行函数");
        })();
    </script>
</head>
<body>
    
</body>
</html>